package com.syezon.wifikey.safe;


import android.support.annotation.NonNull;

public class SafeCheckItemInfo implements Comparable<SafeCheckItemInfo> {

    public static final int TYPE_TITLE = 4;
    public static final int TYPE_CHECK_ITEM = 3;
    public static final int TYPE_LOCATION = 2;
    public static final int TYPE_ENHANCE = 1;
    public static final int TYPE_DIVIDER = 5;

    private int type;
    private String title;
    private int total;
    private boolean isFinish;
    private Integer order = 0;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isFinish() {
        return isFinish;
    }

    public void setFinish(boolean finish) {
        isFinish = finish;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public int compareTo(@NonNull SafeCheckItemInfo o) {
        return this.order.compareTo(o.getOrder());
    }
}
